package com.beauty.user.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginResponse {
    private String token;
    private String userId;
    private String customerId;
    private String username;
    private Boolean isMerchant;
    private String merchantId;
    private String merchantInfo;
    
    // 提供一个简化的构造函数，用于普通用户
    public LoginResponse(String token, String username) {
        this.token = token;
        this.username = username;
        this.isMerchant = false;
        this.merchantId = null;
        this.merchantInfo = null;
    }
    
    // 提供一个包含userId和customerId的构造函数
    public LoginResponse(String token, String userId, String customerId, String username) {
        this.token = token;
        this.userId = userId;
        this.customerId = customerId;
        this.username = username;
        this.isMerchant = false;
        this.merchantId = null;
        this.merchantInfo = null;
    }
} 